<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
    <h:outputStylesheet library="css" name="main.css" />
</h:head>
<h:body>
    <h:form>
        <h:messages/>
 
        <h3>${msgs.criarTipoPrancha}</h3>
        
        <h:panelGrid columns="2" styleClass="panelGrid" rowClasses="panelFirstLine,panelNextLine" >
            <h:outputLabel for="tipoPrancha" value="#{msgs.tipoPrancha}" />
            <h:inputText id="tipoPrancha" value="#{tipoPranchaCRUDBean.tipoPrancha.tipo}" required="true" requiredMessage="#{msgs.tipoNecessario}" />
 
            <h:outputLabel for="descricao" value="#{msgs.descricao}" />
            <h:inputText id="descricao" value="#{tipoPranchaCRUDBean.tipoPrancha.descricao}" />
        </h:panelGrid>
        <h:panelGrid columns="2">
        
        	 <p:commandButton action="#{tipoPranchaCRUDBean.criarTipoPrancha()}"
            				 process="@form" 
            				 value="#{msgs.create}"/>
            				 
            <p:commandButton action="#{dogCRUDBean.closeDialog(createDog)}" 
            				 value="#{msgs.cancel}" 
            				 immediate="true" />
        </h:panelGrid>
        <br/>
    </h:form>
</h:body>
</html>